package cn.itcast.order.jobs;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class CancelOrderJob {

    @XxlJob("cancelOrderJob")
    public void execute(){
        String jobParam = XxlJobHelper.getJobParam();
        log.info("定时任务取消订单，请求参数：{}",jobParam);
    }
}
